const env = import.meta.env.MODE || 'mock';

const apiRoot = {
    mock: {
        SITE_URL: 'https://home-dev.scrm.keyid.cn',
        BASE_API_URL: '/zw-api'
    },
    serve: {
        SITE_URL: 'https://home-dev.scrm.keyid.cn',
        BASE_API_URL: '/zw-api'
    },
    dev: {
        SITE_URL: 'https://home-dev.scrm.keyid.cn',
        BASE_API_URL: '//api-dev.scrm.keyid.cn'
    },
    test: {
        SITE_URL: 'https://home-test.scrm.keyid.cn',
        BASE_API_URL: '//api-test.scrm.keyid.cn'
    },
    uat: {
        SITE_URL: 'https://home-test.scrm.keyid.cn',
        BASE_API_URL: '//api-test.scrm.keyid.cn'
    },
    prod: {
        SITE_URL: 'https://home.scrm.keyid.cn',
        BASE_API_URL: '//api.scrm.keyid.cn'
    }
}[env];

export default apiRoot;
